package com.qqtech.qquan.coupon.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class CouponUser extends BaseDomain{
	private Integer orderCouponId;
	
	/**
	 * 获得优惠卷途径
	 */
	private Integer obtainWay;

	/**
	 * 获得优惠卷途径业务id
	 */
	private Integer obtainWayId;


	//columns START
    /** 券编号,规则uuid */
	private java.lang.String couponNo;

	/** 用户id */
	private java.lang.Integer userId;


	/** 优惠卷id */
	private java.lang.Integer couponId;
	/** 状态CouponUserStatusEnum:1-未使用;2-已使用;3-已过期 */
	private java.lang.Integer status;
	/** 失效时间 */
	private java.sql.Timestamp expireAt;
	//columns END
	public CouponUser(){
	}


	public CouponUser( java.lang.Integer id ){
		this.id = id;
	}
	public java.lang.Integer getCouponId() {
		return this.couponId;
	}
	
	
	
	public java.lang.String getCouponNo() {
		return this.couponNo;
	}

	public java.sql.Timestamp getExpireAt() {
		return this.expireAt;
	}

	public Integer getObtainWay() {
		return obtainWay;
	}

	public Integer getObtainWayId() {
		return obtainWayId;
	}


	public Integer getOrderCouponId() {
		return orderCouponId;
	}
	public java.lang.Integer getUserId() {
		return this.userId;
	}

	public void setCouponId(java.lang.Integer couponId) {
		this.couponId = couponId;
	}

	public void setCouponNo(java.lang.String couponNo) {
		this.couponNo = couponNo;
	}

	public void setExpireAt(java.sql.Timestamp expireAt) {
		this.expireAt = expireAt;
	}
	
	public void setObtainWay(Integer obtainWay) {
		this.obtainWay = obtainWay;
	}

	public void setObtainWayId(Integer obtainWayId) {
		this.obtainWayId = obtainWayId;
	}
	
	public void setOrderCouponId(Integer orderCouponId) {
		this.orderCouponId = orderCouponId;
	}
	public java.lang.Integer getStatus() {
		return status;
	}


	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}


	public void setUserId(java.lang.Integer userId) {
		this.userId = userId;
	}
	

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

